package blazingbubble.command;

import spark.network.NetworkConnection;
import spark.network.Sender;
import spark.network.protocol.Base;
import blazingbubble.command.ICommand;

public class NetworkCommand {
	private Sender sender;
	private NetworkConnection serverConnection;

	public NetworkCommand(Sender sender, NetworkConnection serverConnection) {
		this.sender = sender;
		this.serverConnection = serverConnection;
	}

	public void send(Base packet) {
		sender.send(packet, serverConnection);
	}
}
